﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RoleManagement.aspx.cs" Inherits="RoleManagement" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>流程设置</title>
    <link href="css/allocation.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="wrapper">
        <div id="mainContent">
            <div id="allocationTable" class="dhd_table">
                <form id="form1" runat="server">
                    <h1>
                        角色管理</h1>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td style="padding-left:0;padding-right:0" >
                                
                                    <asp:DataGrid ID="dgUsers" runat="server" AllowPaging="True" AutoGenerateColumns="False" Width="100%" OnItemDataBound="dgUsers_ItemDataBound" OnPageIndexChanged="dgUsers_PageIndexChanged" OnItemCommand="dgUsers_ItemCommand">
                                        <PagerStyle NextPageText="下一页" PrevPageText="上一页" />
                                        <Columns>
                                            <asp:BoundColumn DataField="DEPID" HeaderText="部门ID"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="USERNAME" HeaderText="用户名"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="TRUENAME" HeaderText="真名"></asp:BoundColumn>
                                            <asp:TemplateColumn HeaderText="所在部门">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblDepName" runat="server"></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="用户角色">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblRoleName" runat="server"></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="更改用户角色">
                                                <ItemTemplate>
                                                    <asp:RadioButton ID="admin" runat="server" GroupName="role" Text="系统管理员" />
                                                    <asp:RadioButton ID="functionAdmin" runat="server" GroupName="role" Text="职能用户" />
                                                    <asp:RadioButton ID="user" runat="server" GroupName="role" Text="一般用户" />
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="操作">
                                                <ItemTemplate>
                                                    <asp:Button ID="btnSure" runat="server" CommandName="sure" Text="确  认" OnClientClick='return confirm("您真的要更改该用户的权限吗？")' />
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                        </Columns>
                                        <HeaderStyle ForeColor="#046D30" />
                                    </asp:DataGrid>
                                </td>
                        </tr>
                     
                      
                    </table>
                </form>
                <asp:DataGrid ID="DataGrid1" runat="server" PageSize="1" Visible="False">
                </asp:DataGrid></div>
            <!-- end of mainContent -->
        </div>
        <!-- end of mainContent -->
        <div id="copyright">
            <p>
                Copyright&copy; 2009-2010 All rights reserved.<strong>桂林供电局</strong></p>
        </div>
        <!-- end of copyright -->
    </div>
</body>
</html>
